const base_url = `http://${document.domain}:8080/api`
const handle_code = (json) => {
    if (json.code != 200) {
      window.location.href = `error.html?code=${json.code}&msg=${json.msg}`
    }
  }
  
  const handle_fail = () => {
    window.location.href = `error.html?code=500&msg=服务器请求失败，请联系管理员!`
  }

  const display = () => {
    $('#loading').hide()
    $('#load').show()
  }  